package java6699.task;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;


public class Editor6699 extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws IOException {
        FXMLLoader fxmlLoader=new FXMLLoader(Editor6699Controller.class.getResource("Editor6699View.fxml"));
        Scene scene=new Scene(fxmlLoader.load());
        primaryStage.setScene(scene);
        primaryStage.setTitle("文本编辑器");
        primaryStage.show();
        //获得控制对象
        Editor6699Controller controller=fxmlLoader.getController();
        //调用方法为CloseRequest注册监听
        controller.setCloseRequest(primaryStage);

    }
}
